﻿using JNPF.Basics.Models;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic
{
    /// <summary>
    /// 企业号组织
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-08-06 
    /// </summary>
    internal interface QYDepartmentIService
    {
        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<QYDepartmentEntity>> GetList();
        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<QYDepartmentEntity>> GetSyncList();
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <returns></returns>
        Task<List<QYDepartmentEntity>> GetListByUserId(string userId);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Create(QYDepartmentEntity entity);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Delete(QYDepartmentEntity entity);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Update(QYDepartmentEntity entity);

    }
}
